package com.kaibes.web.filter;

import java.io.IOException;

import javax.servlet.ServletException;

import org.springframework.core.annotation.Order;

public interface DoFilterInternal {
    void doFilterInternal(FilterInternal filterInternal) throws ServletException, IOException;
    default int order() {
        Order order = getClass().getDeclaredAnnotation(Order.class);
        if (order == null) {
            return 0;
        } else {
            return order.value();
        }
    };
}
